package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.logistics.LogisticsBill;

public class LogisticsBillEvent extends DomainEvent<LogisticsBill> {

  //物流单创建
  public static final String LOGISTICS_BILL_CREATED = "logisticsBillCreated";

  public static LogisticsBillEvent bulidLogisticsBillCreated(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_CREATED;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }

  //物流单删除
  public static final String LOGISTICS_BILL_DELETED = "logisticsBillDeleted";

  public static LogisticsBillEvent bulidLogisticsBillDeleted(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_DELETED;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }

  //物流单修改
  public static final String LOGISTICS_BILL_UPDATED = "logisticsBillUpdated";

  public static DomainEvent bulidLogisticsBillUpdated(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_UPDATED;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }

  //物流单发货
  public static final String LOGISTICS_BILL_DELIVERY = "logisticsBillDelivery";

  public static LogisticsBillEvent bulidLogisticsBillDelivery(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_DELIVERY;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }

  //物流单收货
  public static final String LOGISTICS_BILL_COLLECTED = "logisticsBillCollected";

  public static LogisticsBillEvent bulidLogisticsBillCollected(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_COLLECTED;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }

  //物流单取消发货
  public static final String LOGISTICS_BILL_CANCELLED = "logisticsBillCancelled";

  public static DomainEvent bulidLogisticsBillCancelled(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_CANCELLED;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }

  //物流单取消签收
  public static final String LOGISTICS_BILL_UN_RECEIVED = "logisticsBillUnReceived";

  public static DomainEvent bulidLogisticsBillUnReceived(Object[] values) {
    LogisticsBillEvent logisticsBillEvent = new LogisticsBillEvent();
    logisticsBillEvent.eventName = LOGISTICS_BILL_UN_RECEIVED;
    logisticsBillEvent.values = values;
    return logisticsBillEvent;
  }


}
